
/**
 * Copyright (c) 2019, SHENZHENSHIDING
 * 
 * All rights reserved.
 * 
 */
#ifndef _USER_SIMULATE_IIC_H
#define _USER_SIMULATE_IIC_H

/*
 * INCLUDES
 */
#include "stdio.h"
#include "co_printf.h"
#include "driver_iomux.h"
#include "driver_pmu.h"
#include "sys_utils.h"
#include "driver_gpio.h"

/** @defgroup Function Declaration
  * @{
  */
uint8_t i2c_read(void);
uint8_t i2c_write(uint8_t dat);
void i2c_start(void);
void i2c_stop(void);

void IIC_ACK(void);
void nack(void);
uint8_t ack(void);
void delay(int i);
void user_simu_iic_GPIOINIT(void);
#endif
